<?php

/*
|--------------------------------------------------------------------------
| Routes File
|--------------------------------------------------------------------------
|
| Here is where you will register all of the routes in an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/


Route::group(['prefix'=>'backend','namespace' => 'backend','middleware' => ['web','membermiddle']],function(){


    require_once __DIR__."/Routes/items.php";
    require_once __DIR__."/Routes/work.php";
    require_once __DIR__."/Routes/backend.php";
    require_once __DIR__."/Routes/member.php";
    require_once __DIR__."/Routes/message.php";

});





/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/


Route::group(['middleware' => ['web']], function () {
//登陆
 Route::get('/', 'backend\MemberController@login');
    Route::post('/login', 'backend\MemberController@majia');

//退出
    Route::get('/logout', 'backend\MemberController@logout');
    Route::get('/companyset', 'backend\MemberController@index');
});


